|
2020-2021 Sunseeker Telemetry and Lighting System
|
#include "driverlib.h"Go to the source code of this file.
Functions | |
| void | main (void) |
| void main | ( | void | ) |
COMPB - LED Toggle in LPM4, Ultra Low Power Mode, Input compared against 0.5*Vcc
Use CompB and shared reference to determine if input 'Vcompare' is high of low. When Vcompare exceeds Vcc*1/2 CBOUT goes high and when Vcompare is less than Vcc*1/2 then CBOUT goes low. Connect P1.6/CBOUT to P1.0 externally to see the LED toggle accordingly.
MSP430x552x ------------------
/|| | | | | –|RST P6.0/CB0|<- Vcompare | P1.6/CBOUT|--> 'high'(Vcompare>Vcc*1/2); 'low'(Vcompare<Vcc*1/2) | | | | P1.0|_| LED 'ON'(Vcompare>Vcc*1/2); 'OFF'(Vcompare<Vcc*1/2) | |
This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:
This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.
Definition at line 67 of file comp_b_ex3_avccRefULPM.c.
References __delay_cycles(), and __no_operation().